home *** CD-ROM | disk | FTP | other *** search
/ Graphics Plus / Graphics Plus.iso / libs / vopl / glvopl.lha / glvopl / gpp / gpp.h < prev    next >
Encoding:
C/C++ Source or Header  |  1992-12-10  |  665 b   |  49 lines

  1. #include <stdio.h>
  2. #ifdef PC
  3. #include <string.h>
  4. #define rindex    strrchr
  5. char    *malloc();
  6. #else
  7. #include <strings.h>
  8. #endif
  9.  
  10. #define MAXPNTS    1024
  11.  
  12. #ifdef PC
  13. #define DEFAULTDEV "hercules"
  14. #else
  15. #define DEFAULTDEV "X11"
  16. #endif
  17.  
  18. #define    VERSION    "678-983-132773-1.1"
  19.  
  20. /*
  21.  * graph types
  22.  */
  23. #define    X        1
  24. #define    Y        2
  25. #define    Z        4
  26.  
  27. /*
  28.  * single graph structure
  29.  */
  30. typedef struct gr {
  31.     int        type;
  32.     char        *legend;
  33.     int        npnts;
  34.     float        *x, *y, *z;
  35.     struct gr    *nxt;
  36. } graph;
  37.  
  38. extern graph    *gp;
  39.  
  40. extern char    device[], fontname[];
  41.  
  42. extern char    *xlabel, *ylabel, *zlabel;
  43.  
  44. extern int    ngraphs, do_legend, uxscale, uyscale, uzscale;
  45.  
  46. extern FILE    *infile;
  47.  
  48. extern    float    wholescale;
  49.